projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2202e1
)
GtkLabel: fix underlining of mnemonics
author
Sébastien Wilmet
<swilmet@gnome.org>
Sat, 23 Mar 2013 15:44:49 +0000
(16:44 +0100)
committer
Sébastien Wilmet
<swilmet@gnome.org>
Sun, 24 Mar 2013 14:07:40 +0000
(15:07 +0100)
The underscore was shown in front of the mnemonic instead of underlining
it (e.g., _Save).
Thanks to Lars Uebernickel.
https://bugzilla.gnome.org/show_bug.cgi?id=674759
gtk/gtklabel.c
patch
|
blob
|
history
diff --git
a/gtk/gtklabel.c
b/gtk/gtklabel.c
index 20d2c2e1cf012c24b4b34efa535180ea2bd0801d..3b85c316cc977e090f299a9c0c8f9dc666d4a41b 100644
(file)
--- a/
gtk/gtklabel.c
+++ b/
gtk/gtklabel.c
@@
-2570,7
+2570,7
@@
gtk_label_set_markup_internal (GtkLabel *label,
/* Extract the text to display */
if (!pango_parse_markup (str_for_display,
-1,
- 0,
+
with_uline ? '_' :
0,
&attrs,
&text,
NULL,